package io.renren.modules.m.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.m.entity.MaterialEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.m.entity.MtypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface MaterialDao extends BaseMapper<MaterialEntity> {

    List<MaterialEntity> listMaterial();

    IPage<MaterialEntity> selectByPid(String pid, Page<MaterialEntity> page);

    List<MtypeEntity> listNum();

    List<MaterialEntity> getMaterial(String matid);
}
